#include <stdio.h>
#include <time.h>

void printN1(int N){
    int i;
    for(i=1;i<=N;i++){
        // printf("%d\n", i);
    }
    return;
}

void printN2(int N){
    if(N){
        printN2(N-1);
        printf("%d\n",N);
    }
    return;
}

int main(){
    time_t start1,stop1,start2,stop2;
    
    start1 = clock();
    printN1(10000);
    stop1 = clock();
    printf("print1=%d\n", stop1-start1);

    start2 = clock();
    printN2(10000);
    stop2 = clock();
    printf("print2=%d\n", stop2-start2);

    return 0;
}

